#
#       makefile  --  a simple demo of system bootloader 
#       
#

#************************************************************
# system bootloader
all:	
	armasm startup.s -o startup.o
	armcc -c main.c -o main.o 
	armlink startup.o main.o -ro-base 0x32000000 -entry 0x32000000 -first startup.o -o led.axf 
	fromelf led.axf -bin -output led.bin
	fromelf -c -d -s -o led.lst led.axf
	
#************************************************************
# clean up all temp file except source file
clean:	
	-del /F *.o
	-del /F *.axf	
	-del /F *.bin
	-del /F *.bak
	-del /F *.lst